package com.lry.order;

import com.lry.order.utils.SpringUtils;
import com.lry.rpc.starter.config.ApplicationConfig;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class RpcOrderApplication implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(RpcOrderApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        ApplicationConfig applicationConfig= SpringUtils.getBean(ApplicationConfig.class);
        System.out.println(applicationConfig);
    }
}
